package com.app.model;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lm_questionnaire_answer")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AnswerModel {
    @TableField(exist = false)
    private Integer id;
    private Integer userId;
    private String answer;
    private Integer questionId;
    private String optionId;
    @TableField(exist = false)
    private String faceUrl;
    @TableField(exist = false)
    private String userName;
    private String mobile;

    @TableField(exist = false)
    private int redCount;
    @TableField(exist = false)
    private int blueCount;
    @TableField(exist = false)
    private int yellowCount;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private LocalDateTime updateTime;
}
